package com.kmxd.ams.client.archive.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.Data;

/**
 * 知悉范围
 *
 * @author nickbi
 * @since 2024-01-08
 */
@Data
@Schema(description = "知悉范围对象")
public class ArchiveAuthScopeVO implements Serializable {

  private static final long serialVersionUID = 1L;

  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  @JsonSerialize(using = ToStringSerializer.class)
  private Long fondsId;

  @JsonSerialize(using = ToStringSerializer.class)
  private Long comId;

  /** 知悉范围划分：按本部门 */
  @Schema(description = "按单位过滤")
  private Boolean authDepartment;

  /** 知悉范围划分：按创建人 */
  @Schema(description = "按创建人过滤")
  private Boolean authUser;

  @Schema(description = "门类id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long archTypeId;

  @Schema(description = "类型:1知悉范围内,2知悉范围外,3外单位")
  private Integer scopeType;

  @Schema(description = "在线浏览，有权限为1，没有权限为0")
  private Boolean onlineBrowser;

  @Schema(description = "原文浏览，有权限为1，没有权限为0")
  private Boolean browserFile;

  @Schema(description = "在线打印，有权限为1，没有权限为0")
  private Boolean onlinePrint;

  @Schema(description = "下载，有权限为1，没有权限为0")
  private Boolean download;

  @Schema(description = "下载源文件，有权限为1，没有权限为0")
  private Boolean downloadSource;

  @Schema(description = "现场借阅，有权限为1，没有权限为0")
  private Boolean liveRead;

  @Schema(description = "外借，有权限为1，没有权限为0")
  private Boolean lendOut;

  @Schema(description = "复制外发，有权限为1，没有权限为0")
  private Boolean copySend;

  @Schema(description = "摘录，有权限为1，没有权限为0")
  private Boolean excerpt;

  /** 知悉范围外 */
  @Schema(description = "在线浏览，有权限为1，没有权限为0")
  private Boolean outOnlineBrowser;

  /** 知悉范围外 */
  @Schema(description = "原文浏览，有权限为1，没有权限为0")
  private Boolean outBrowserFile;

  @Schema(description = "在线打印，有权限为1，没有权限为0")
  private Boolean outOnlinePrint;

  @Schema(description = "下载，有权限为1，没有权限为0")
  private Boolean outDownload;

  @Schema(description = "下载源文件，有权限为1，没有权限为0")
  private Boolean outDownloadSource;

  @Schema(description = "现场借阅，有权限为1，没有权限为0")
  private Boolean outLiveRead;

  @Schema(description = "外借，有权限为1，没有权限为0")
  private Boolean outLendOut;

  @Schema(description = "复制外发，有权限为1，没有权限为0")
  private Boolean outCopySend;

  @Schema(description = "摘录，有权限为1，没有权限为0")
  private Boolean outExcerpt;

  /** 通用利用方式 */
  @Schema(description = "在线浏览，有权限为1，没有权限为0")
  private Boolean otherOnlineBrowser;

  @Schema(description = "原文浏览，有权限为1，没有权限为0")
  private Boolean otherBrowserFile;

  @Schema(description = "在线打印，有权限为1，没有权限为0")
  private Boolean otherOnlinePrint;

  @Schema(description = "下载，有权限为1，没有权限为0")
  private Boolean otherDownload;

  @Schema(description = "下载源文件，有权限为1，没有权限为0")
  private Boolean otherDownloadSource;

  @Schema(description = "现场借阅，有权限为1，没有权限为0")
  private Boolean otherLiveRead;

  @Schema(description = "外借，有权限为1，没有权限为0")
  private Boolean otherLendOut;

  @Schema(description = "复制外发，有权限为1，没有权限为0")
  private Boolean otherCopySend;

  @Schema(description = "摘录，有权限为1，没有权限为0")
  private Boolean otherExcerpt;
}
